package com.zlcx.tz.live.vo.page;

import java.io.Serializable;

/**
 * Created by huaaijia on 2017/12/19.
 */
public class PageParamVO implements Serializable {

    private static final int DEFAULT_PAGE_SIZE = 20;

    private int page;
    private int pageSize;

    private String orderByStr;

    public int getPage() {
        return page<=0?1:page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize<=0?DEFAULT_PAGE_SIZE:pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByStr() {
        return orderByStr;
    }

    public void setOrderByStr(String orderByStr) {
        this.orderByStr = orderByStr;
    }
}
